<div class="full">
    
    <div class="tabbable">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#servico" data-toggle="tab">Services</a></li>
            <li><a href="#social" data-toggle="tab">Media Center</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="servico">
                
                
                <div class="full"><?php include "mod/news/index.php"; ?></div>

                <div class="full">

                    <div class="esq conteudo">
                        <?php
                        include "mod/helpdesk/index.php";
                        echo "<hr>";
                        include "mod/webmail/index.php";
                        ?>
                    </div>

                    <div class="meio1 conteudo">
                        <?php include "mod/ciss/index.php"; ?>
                    </div>

                    <div class="meio2 conteudo">
                        <?php
                        include "mod/documento/index.php";
                        include "mod/meteoro/index.php";
                        ?>
                    </div>

                    <div class="dir conteudo">
                        <?php
                        include "mod/safety/index.php";
                        echo "<hr>";
                        include "mod/seguranca/index.php";
                        echo "<hr>";
                        include "mod/facilidade/index.php";
                        ?>
                    </div>

                </div>
                
                
            </div>
            <div class="tab-pane" id="social">
                
                <?php
                $sql = "SELECT * FROM midia WHERE mid_tipo='video'";
                $res = sql($sql);
                $num_espaco = mysql_num_rows($res);
                if ($num_espaco == 0){  
                    $espaco1 = "span11";  
                } else { 
                    $espaco1 = "span8";
                    $espaco2 = "span4";
                }
                ?>
                
                <div class="<?php echo $espaco1;?>">
                    
                    <?php 
                    include "mod/noticia/index.php"; 
                    ?>
                    
                </div>
                
                <?php if ($num_espaco != 0){ ?>
                <div class="<?php echo $espaco2;?>">
                    
                    <?php include "mod/video/index.php"; ?>
                    
                </div>
                <?php } ?>
                
            </div>
        </div>
    </div>

</div>